﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Entity.Entity.JJFlow;
using Jinjia.Approve.Model.VM.JJFlow;
using Jinjia.Core.BaseInfrastructure.StorageModel;

namespace Jinjia.Approve.IRepository.JJFlow
{
    public interface IFlowTrackRepository : IBaseRepository<jj_flow_track>
    {
        Task<int> Save(jj_flow_track data);
        
        Task Save(List<jj_flow_track> data);

        Task<bool> GetApproveTrackModelByInstanceId(int instance_id);

        Task<List<JjFlowTrackVM>> GetListByBizOrderID(string biz_order_id, string modular_key, int flow_instance_id);

        Task<List<jj_flow_track>> GetFlowTracks(int instance_id);

        Task<List<jj_flow_track>> GetListByInstanceId(int instance_id);
    }
}